export function createMonthArr(): number[] {
  const arr = [];
  for (let i = 1; i <= 12; i++) {
    arr.push(i);
  }
  return arr;
}

export function createDayArr(date: number[]): number[] {
  const count = getDayCount(date);
  const arr = [];
  for (let i = 1; i <= count; i++) {
    arr.push(i);
  }
  return arr;
}

function getDayCount([year, month]: number[]): number {
  return new Date(year, month, 0).getDate();
}
